package com.example.hibernate.e.inheritance_3;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@DiscriminatorValue("BA")
public class BankAccount extends BillingDetails {
	
	@Column(name="BA_ACCOUNT")
	private String account;
	
	@Column(name="BA_BANKNAME")
	private String bankname;
	
	@Column(name="BA_SWITT")
	private String switt;
	
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getBankname() {
		return bankname;
	}
	public void setBankname(String bankname) {
		this.bankname = bankname;
	}
	public String getSwitt() {
		return switt;
	}
	public void setSwitt(String switt) {
		this.switt = switt;
	}
	@Override
	public String toString() {
		return "BankAccount [account=" + account + ", bankname=" + bankname + ", switt=" + switt + "]";
	}
}
